/*
 * @Description: 数组检测
 * @Author: zzj
 * @Date: 2021-09-13 14:48:17
 * @LastEditors: zzj
 * @LastEditTime: 2021-09-13 14:53:18
 */

var obj = {
    name:"briup",
    age:22
  };
  var arr = [
    1,
    2,
    obj,
    true,
    false,
    undefined,
    null,
    "briup",
    function(){
      console.log("function");
    }
  ];
  console.log(arr);
  console.log(arr.length);//9
  arr[8]();
   
  console.log(typeof arr);//’object’
  var result = Array.isArray(arr);
  console.log(result);//true
  console.log(arr instanceof Array);//true
  console.log(arr instanceof Object);//true
  console.log(arr instanceof Number);//false